<?php

if (! defined('BASEPATH')) exit('No direct script access');

class Folders extends Controller {

  //php 5 constructor
  function __construct() {
    parent::Controller();
    $this->load->model('Folder');
  }
  
  //php 4 constructor
  function Folders() {
    parent::Controller();
    $this->load->model('Folder');
  }
  
  /**
   * Buscamos archivos que correspondan a la carpeta
   *
   * @return void
   * @author Ian Murray
   */
  function browse($folder_id) {
    $this->load->model('File');
    $this->load->helper('icons');
    $files = $this->File->get_by_folder_id($folder_id);
    $this->load->view('folders/browse', array('files' => $files));
  }

}
?>